package object04;

public class Demo04 {
    public static void main(String[] args) {
        Person p = new Person("三峰",28);
        Animal a = new Animal();
        System.out.println(p.equals(a));

        Person p2 = new Person("四风",30);
        System.out.println(p.equals(p2));  // false

        System.out.println(p2.equals(p2));
        // 显而易见，自己和自己比较为true

    }
}







